import SwiftUI

struct PhotoCountBadge: View {
    var count: Int
    var body: some View {
        Text("\(count) 张")
            .font(.caption2)
            .padding(.horizontal, 8)
            .padding(.vertical, 4)
            .background(Color.accentColor.opacity(0.15))
            .foregroundColor(.accentColor)
            .cornerRadius(8)
    }
}

#Preview {
    PhotoCountBadge(count: 12)
} 